
<link href="../css/Quantricss.css" rel="stylesheet" type="text/css">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>

<?php
    error_reporting(FALSE);
    require_once ("../mysql.php");
    require_once ("function_quantri.php");
    $sanpham_thuoctinh = sanpham_thuoctinh();
    
?>


<table width ="100%" border="1" align="center">
    <tr>
        <td colspan="31" align="center" bgcolor="#0000FF"><span class="style1">Danh sách sản phẩm</span></td>
    </tr>    
    <tr>
        <td width="80" align="center"><span class="style2">idSP</span></td>
        <td width="102" align="center"><span class="style2">Tính năng nổi bật</span></td>
        <td width="162" align="center"><span class="style2">Máy ảnh</span></td>
        <td width="81" align="center"><span class="style2">Đặc tính máy ảnh</span></td>
        <td width="204" align="center"><span class="style2">Máy ảnh phụ</span></td>
        <td width="62" align="center"><span class="style2">Video call</span></td>
        <td width="162" align="center"><span class="style2">Quay phim</span></td>
        <td width="162" align="center"><span class="style2">Xem phim</span></td>
        <td width="162" align="center"><span class="style2">Nghe nhạc</span></td>
        <td width="162" align="center"><span class="style2">FM radio</span></td>
        <td width="162" align="center"><span class="style2">Xem TV</span></td>
        <td width="162" align="center"><span class="style2">Ghi âm</span></td>
        <td width="162" align="center"><span class="style2">Ghi âm cuộc gọi</span></td>
        <td width="162" align="center"><span class="style2">Ghi âm FM</span></td>
        <td width="162" align="center"><span class="style2">Java</span></td>
        <td width="162" align="center"><span class="style2">Trò chơi</span></td>
        <td width="162" align="center"><span class="style2">Kêt nối TV</span></td>
        <td width="162" align="center"><span class="style2">Ứng dụng văn phòng</span></td>
        <td width="162" align="center"><span class="style2">Ứng dụng khác</span></td>
        <td width="162" align="center"><span class="style2">Loại nhạc chuông</span></td>
        <td width="162" align="center"><span class="style2">Loa ngoài</span></td>
        <td width="162" align="center"><span class="style2">Báo rung</span></td>
        <td width="162" align="center"><span class="style2">Jack tai nghe</span></td>
        <td width="162" align="center"><span class="style2">Bộ nhớ trong</span></td>
        <td width="162" align="center"><span class="style2">RAM</span></td>
        <td width="162" align="center"><span class="style2">CPU</span></td>
        <td width="162" align="center"><span class="style2">Thẻ nhớ ngoài</span></td>
        <td width="162" align="center"><span class="style2">Dung lượng tối đa</span></td>
        <td width="162" align="center"><span class="style2">SMS</span></td>
        
        
        <td width="162" align="center"><a href="Sanpham_quantri.php">Quay về trang admin</a></td>
    </tr>
    
           

  <?php 
    while ($rows_thuoctinh = mysql_fetch_array($sanpham_thuoctinh))
    {
  ?>  
   
       <tr bgcolor="# <?php if($i%2==0) echo "FFFF00";?>">
       <td><?php echo $rows_thuoctinh['idSP']?></td>
       <td><?php echo $rows_thuoctinh['tinh_nang_noi_bat']?></td>
       <td><?php echo $rows_thuoctinh['may_anh']?></td>
       <td><?php echo $rows_thuoctinh['dac_tinh_may_anh']?></td>
       <td><?php if($rows_thuoctinh['may_phu_anh']==0) echo "Không";
                 if($rows_thuoctinh['may_phu_anh']==1) echo "Có";?></td>
       <td><?php if($rows_thuoctinh['video_call']==0) echo "Không";
                 if($rows_thuoctinh['video_call']==1) echo "Có";?></td>
       <td><?php if($rows_thuoctinh['quay_phim']==0) echo "Không";
                 if($rows_thuoctinh['quay_phim']==1) echo "Có";?></td>
       <td><?php echo $rows_thuoctinh['xem_phim']?></td>
       <td><?php echo $rows_thuoctinh['nghe_nhac']?></td>
       <td><?php if($rows_thuoctinh['fm_radio']==0) echo "Không";
                 if($rows_thuoctinh['fm_radio']==1) echo "Có";?></td>
       <td><?php echo $rows_thuoctinh['xem_tivi']?></td>
       <td><?php if($rows_thuoctinh['ghi_am']==0) echo "Không";
                 if($rows_thuoctinh['ghi_am']==1) echo "Có";?></td>
       <td><?php if($rows_thuoctinh['ghi_am_cuoc_goi']==0) echo "Không";
                 if($rows_thuoctinh['ghi_am_cuoc_goi']==1) echo "Có";?></td>
       <td><?php if($rows_thuoctinh['ghi_am_fm']==0) echo "Không";
                 if($rows_thuoctinh['ghi_am_fm']==1) echo "Có";?></td>
       <td><?php if($rows_thuoctinh['java']==0) echo "Không";
                 if($rows_thuoctinh['java']==1) echo "Có";?></td>
       <td><?php echo $rows_thuoctinh['tro_choi']?></td>
       <td><?php if($rows_thuoctinh['ket_noi_tv']==0) echo "Không";
                 if($rows_thuoctinh['ket_noi_tv']==1) echo "Có";?></td>
       <td><?php echo $rows_thuoctinh['ung_dung_van_phong']?></td>
       <td><?php echo $rows_thuoctinh['ung_dung_khac']?></td>
       <td><?php echo $rows_thuoctinh['nhacchuong_loai']?></td>
       <td><?php if($rows_thuoctinh['nhacchuong_loa_ngoai']==0) echo "Không";
                 if($rows_thuoctinh['nhacchuong_loa_ngoai']==1) echo "Có";?></td>
       <td><?php if($rows_thuoctinh['nhacchuong_bao_rung']==0) echo "Không";
                 if($rows_thuoctinh['nhacchuong_bao_rung']==1) echo "Có";?></td>
       <td><?php echo $rows_thuoctinh['nhacchuong_jack_tai_nghe']?></td>
       <td><?php echo $rows_thuoctinh['bonho_bo_nho_trong']?></td>
       <td><?php if($rows_thuoctinh['bonho_ram']=='-') echo "Không";else echo $rows_thuoctinh['bonho_ram']?></td>
       <td><?php if($rows_thuoctinh['bonho_vi_xu_ly_cpu']=='-') echo "Không";else echo $rows_thuoctinh['bonho_vi_xu_ly_cpu']?></td>
       <td><?php echo $rows_thuoctinh['bonho_the_nho_ngoai']?></td>
       <td><?php echo $rows_thuoctinh['bonho_ho_tro_the_toi_da']?></td>
       <td><?php echo $rows_thuoctinh['tin_nhan']?></td>
    </tr>
    
    <?php }?>
</table>